<%= render :partial => "shared/admin_links" %>
<%= will_paginate_locale @contacts %>
<div class="homeButton"><%= link_to (image_tag("/images/buttons/homeButton.jpg", :alt => "24_menu", :class => "homeImage")),  root_path, :class => "homeLink" %></div>
<table class="adminTableProducts" border="0" width="100%" cellpadding="4" cellspacing="0">
  <tr class="adminTableHeader"><th><%= t("site.cms.label.info") %></th><th><%= t("site.cms.label.message") %></th>
    <th><%= t("site.cms.action.edit") %></th><th><%= t("site.cms.action.delete") %></th></tr>
  <% @contacts.each do |contact| %>
  <tr>
    <td>
      <div><%= "#{t("activerecord.attributes.contact.name")}: #{contact.name}" %></div>
      <div><%= "#{t("activerecord.attributes.contact.phone")}: #{contact.phone}" %></div>
      <div><%= "#{t("activerecord.attributes.contact.email")}: #{contact.email}" %></div>
      <div><%= "#{t("activerecord.attributes.contact.created")}: #{contact.created_at}" %></div>
    </td>
    <td><%= contact.message %></td>
    <td><%= link_to t("site.cms.action.edit"), edit_contact_path(:id => contact.id) %></td>
    <td><%= link_to t("site.cms.action.delete"), contact_path(:id => contact.id),
  :method => :delete, :confirm => t("site.cms.label.sure") %></td>
  </tr>
  <% end %>
</table>
<%= will_paginate_locale @contacts %>